package com.hxkj.controller;

import com.hxkj.domain.po.Companyinfo;
import com.hxkj.service.OptionCompanyService;
import com.platform.common.domain.result.ResultDataStruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * 解析合作公司控制层
 * <p>
 * Created by yaosy on 2018年6月29日14:31:27
 */
@RestController
@RequestMapping("/optionCompany")
public class OptionCompanyController {

    private static final Logger LOGGER = LoggerFactory.getLogger(OptionCompanyController.class);

    @Autowired
    private OptionCompanyService optionCompanyService;

    /**
     * 静态模板解析
     *
     * @param
     * @throws Exception
     */
    @RequestMapping(value = "/analyzeOption")
    public Callable<ResultDataStruct<List<Companyinfo>>> analyzeOption(@RequestBody Companyinfo companyinfo) throws Exception {
        return ()-> optionCompanyService.analyzeOption(companyinfo);
    }

}
